let mount = require('koa-mount')
module.exports = [
  mount('/test',async (ctx,nxt)=>{
    ctx.body = 'hotload 1'
  })
]

if(require.main && !require.main.launched){
  require.main.launched = true
  let Koa = require('koa')
  let app = new Koa()
  let hld = require('./index.js')
  hld('./test.js',app)
  hld('./test-router.js',app)
  hld('./test-unlink.js',app)
  app.listen(11404)
}